package com.czxy.service;

import com.czxy.mapper.BrandMapper;
import com.czxy.pojo.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张青卯
 */
@Service
public class BrandService {

    private final BrandMapper brandMapper;

    @Autowired
    public BrandService(BrandMapper brandMapper) {
        this.brandMapper = brandMapper;
    }

    public List<Brand> findBrandById(Integer catid){
        return brandMapper.fingBrandById(catid);
    }
}
